import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import NewContact from '@/components/NewContact'
import MainTemplate from '@/components/MainTemplate'
import User from '@/components/User'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/newcontact',
      name: 'NewContact',
      component: NewContact
    },
    {
      path: '/main',
      name: 'MainTemplate',
      component: MainTemplate
    },
    {
      path: '/user',
      name: "User",
      component: User
    }
  ]
})
